package com.github.satant.job.biz.impl;

import com.github.satant.job.biz.StShowCommentBiz;
import com.github.satant.job.common.biz.impl.BaseBizImpl;
import com.github.satant.job.entity.StShowComment;
import com.github.satant.job.mapper.StShowCommentMapper;
import java.time.LocalDateTime;
import org.springframework.stereotype.Service;

/**
 * 朋友圈评论表
 *
 * @author dear_satant
 * @email 446269825@qq.com
 * @date 2018-06-26 21:32:18
 */
@Service
public class StShowCommentBizImpl extends BaseBizImpl<StShowCommentMapper,StShowComment> implements StShowCommentBiz {


    @Override
    public StShowComment insertSelective(StShowComment entity) {
        setDefault(entity);
        return super.insertSelective(entity);
    }

    public void setDefault(StShowComment entity){
        entity.setCommentTime(LocalDateTime.now());
    }
}